package com.osce.score.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csce.domain.entity.score.ScoreExExamScore;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 考试分数Mapper接口
 *
 * @author zzx
 * @since 2023-09-05
 */
@Repository
public interface ScoreExExamScoreMapper extends BaseMapper<ScoreExExamScore> {

    /**
     * 批量添加考试分数
     */
    int batchInsertScoreExExamScore(@Param("list") List<ScoreExExamScore> list,@Param("markId") Long markId);

    @MapKey("stepId")
    Map<Long, ScoreExExamScore> selectScoreMapByMarkId(Long markId);

    int deleteScoreExExamScoreByMarkId(Long markId);
}
